/*
 * @Description: 真实性格式设置弹窗
 * @Author: Rfan
 * @Date: 2022-10-10 20:45:23
 * @LastEditTime: 2022-10-10 20:49:38
 */

import React, { useState } from 'react';
import { Button, Form, Input, Modal, Popconfirm, Table, Typography } from 'antd';
import type { MouseEvent } from 'react';

const { Column } = Table;

const FormatNumber = () => {
  return (
    <>
      <Form.List name="number">
        {(fields, { add, remove }, { errors }) => (
          <>
            <Form.Item required={false}>
              <Table dataSource={fields} size="small" pagination={false} bordered>
                <Column
                  dataIndex="int"
                  key="int"
                  align="center"
                  render={(_value, record: any) => (
                    <Form.Item
                      {...record}
                      key={record.key}
                      name={[record.name, 'language']}
                      noStyle
                      valuePropName="children"
                    >
                      <Typography.Text />
                    </Form.Item>
                  )}
                />
                <Column
                  dataIndex="float"
                  key="float"
                  align="center"
                  render={(_value, record: any) => (
                    <Form.Item
                      {...record}
                      key={record.key}
                      name={[record.name, 'language']}
                      noStyle
                      valuePropName="children"
                    >
                      <Typography.Text />
                    </Form.Item>
                  )}
                />
              </Table>
            </Form.Item>
          </>
        )}
      </Form.List>
    </>
  );
};

export default FormatNumber;
